﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using yunbo.Model.BIP;
using yunbo.Repositorys.BIPRepositorys;
using yunbo.Repositorys.FPMRepositorys;

namespace yunbo.Controllers.BIPControllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class Mbd_GYController : ControllerBase
    {
        Mbd_GYRepository  Mbd_GYRepository = new Mbd_GYRepository();


        [HttpGet("GetMbd_GY")]
        public IActionResult GetMbd_GY()
        {
            List<Mbd_GY> quans = Mbd_GYRepository.GetMbd_GY();
            return Ok(quans);
        }

        [HttpGet("GetMbd_GYCode")]
        public IActionResult GetMbd_GYCode(string gy_code)
        {
           Mbd_GY quans = Mbd_GYRepository.GetMbd_GY(gy_code);
            return Ok(quans);
        }
    }
}
